
const routes = [

    {
        path: '/demo',
        name: 'demo',
        meta:{
            title:'demo'
        },
        component:()=>import(/*webpackChunkName: "demo"*/ '@/views/demo/index.vue')
    },
    // 错误页面
    {
        path:'/404',
        name:'404',
        meta:{
            describe:'页面找不到了',
            errorCode:404
        },
        component: () => import(/*webpackChunkName: "errorPage"*/ '@/views/error/errorView.vue')
    },
    {
        path:'/error',
        name:'error',
        meta:{
            describe:'服务器错误，请联系系统管理员',
            errorCode:500
        },
        component: () => import(/*webpackChunkName: "errorPage"*/ '@/views/error/errorView.vue')
    },
    {
        path:'/:catchAll(.*)',
        redirect:'/404'
    }
]

export default routes;
